package Temp;

public class CombineMap implements TempMap {

    TempMap t1, t2;

    public CombineMap(TempMap t1, TempMap t2) {
        this.t1 = t1;
        this.t2 = t2;
    }

    @Override
    public String tempMap(Temp t) {
        String s = t1.tempMap(t);
        if (s != null) {
            return s;
        }
        return t2.tempMap(t);
    }

}
